﻿// See https://aka.ms/new-console-template for more information
//Console.WriteLine("Hello, World!");
//using System;

//class BallFall
//{
    static void Main()
    {
        double height = 100;
        double totalDistance = 100;

        for (int i = 2; i <= 10; i++)
        {
            height /= 2;
            totalDistance += 2 * height;
        }

        Console.WriteLine($"第 10 次落地时共经过：{totalDistance} 米");
        Console.WriteLine($"第 10 次反弹高度：{height / 2} 米");
    }
//}